package com.sbpm.crmbpm.client.panels;

import com.google.gwt.user.client.ui.FlexTable;
import com.sencha.gxt.widget.core.client.button.TextButton;
import com.sencha.gxt.widget.core.client.form.CheckBox;

public class DataBox extends FlexTable
{

    public DataBox( Integer param1, Integer param2, Integer param3, Integer param4 )
    {
        setWidth( "100px" );
        setCellSpacing( 5 );
        TextButton count1 = new TextButton( "" + param1 );
        count1.setWidth( 40 );
        TextButton count2 = new TextButton( "" + param2 );
        count2.setWidth( 40 );
        TextButton count3 = new TextButton( "" + param3 );
        count3.setWidth( 40 );
        TextButton count4 = new TextButton( "" + param4 );
        count4.setWidth( 40 );
        setWidget( 0, 0, count1 );
        setWidget( 0, 2, count2 );
        CheckBox checkBox = new CheckBox();
        checkBox.setValue( true );
        checkBox.setReadOnly( true );
        setWidget( 1, 1, checkBox );
        setWidget( 2, 0, count3 );
        setWidget( 2, 2, count4 );
//        setStylePrimaryName( commonStylesCss.css().dataBox() );
        setStylePrimaryName( "dataBox" );
    }
}
